﻿using System;
using System.IO;
using System.Windows.Forms;

namespace DataScripter.UI
{
    public partial class ResultsForm : Form
    {
        public ResultsForm()
        {
            InitializeComponent();
        }

        private ResultsForm(string resultText) : this()
        {
            resultsTextBox.Text = resultText;
        }

        public static void ShowFile(string outputPath)
        {
            new ResultsForm(File.ReadAllText(outputPath)).Show();
        }
    }
}
